package cn.imokay.springboot.yml.configcomponent;

import cn.imokay.springboot.yml.configmodel.AnotherConfigModel;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class AnotherConfigComponent {

    @Bean
    @ConfigurationProperties("myconfig")
    public AnotherConfigModel getAnotherConfigModel(){
        return new AnotherConfigModel();
    }
}
